package com.xianyu.yf.controller;

import com.xianyu.yf.pojo.ProductInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: xianyunpeng
 * 产品
 */
@RestController("product")
public class ProductController {


    @GetMapping(value = "/")
    public List<ProductInfo> getProductList(){
        return null;
    }

    @GetMapping(value = "/{id}")
    public ProductInfo getProductDetail(){
        return null;
    }
}
